#!/usr/bin/env python
# -*- coding: utf-8 

import csv

class csvHandler:
    global gfiles
    def __init_(self):
        pass
    def setFiles(self,files):
        global gfiles
        gfiles = files
        
        pass
    def printFiles(self):
        global gfiles
        for fileToPrint in gfiles:
            print fileToPrint
            pass
        pass

    def getFiles(self):
        global gfiles
        return gfiles

    def getNumbOfFiles(self):
        global gfiles
        return len(gfiles)

    def getFileWithId(self, id):
        global gfiles
        return gfiles[id]

    def getFileContent(self, fileName):
        spamReader = csv.reader(open('rebcsv/'+fileName,'rb'),delimiter=',')
        return spamReader
        pass
